#include <iostream>  
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
  
int main(int argc, char* argv[]) 
{  
    if(argc != 3)
    {
        std::cout << "Usage : " << argv[0] << "signum pid" << std::endl;
        return 1;
    }

    pid_t pid = std::stoi(argv[2]);
    int signum = std::stoi(argv[1]);

    kill(pid, signum);

    return 0;  
}